﻿namespace DataAccess.Services.Constants
{
	public class DocumentTypeEnum : LookupEntity<string, int>
	{
		private static DocumentTypeEnum instance;
		
		private DocumentTypeEnum() : base(new ServiceManager().DocumentType.GetDocumentTypeIdByName)
		{
		}

		public static DocumentTypeEnum Instance
		{
			get
			{
				if(instance == null)
				{
					instance = new DocumentTypeEnum();
				}

				return instance;
			}
		}

		public int RemittanceAdvice
		{
			get
			{
				return Get("RemittanceAdvice");
			}
		}
	}
}
